package cn.code.admin.security;

import org.springframework.security.access.ConfigAttribute;

/**
 * Created by 汪玉东 on 2017/11/6.
 */
public class UrlNeedPower implements ConfigAttribute {
    private Integer id;
    private String role;
    private String permissions;

    public UrlNeedPower() {
    }

    public UrlNeedPower(Integer id, String role, String permissions) {
        this.id = id;
        this.role = role;
        this.permissions = permissions;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPermissions() {
        return permissions;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }

    @Override
    public String getAttribute() {
        return this.toString();
    }

    @Override
    public String toString() {
        return "UrlNeedPower{" +
                "id=" + id +
                ", role='" + role + '\'' +
                ", permissions='" + permissions + '\'' +
                '}';
    }
}
